package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.CustomerReturnListGoods;

import java.util.List;

public interface CustomerReturnListService {
    //2.1、客户退货单保存  并保存对应退货商品
    ServiceVO saveCustomerReturnListAndGoods(CustomerReturnList customerReturnList, String customerReturnListGoodsStr, String returnNumber);
    //4.1、客户退货单查询（可查询条件：退货单号、客户、退款状态）
    List<CustomerReturnList> getCustomerReturnList(String returnNumber, Integer customerId, Integer state, String sTime, String eTime);
    //4.2、退货单商品信息
    List<CustomerReturnListGoods> getCustomerReturnListGoodsList(Integer customerReturnListId);
    //4.3、删除退货单
    ServiceVO deleteCustomerReturnListAndGoods(Integer customerReturnListId);
    //4.2、客户退货统计（可根据 商品类别、商品编码或名称 条件查询）
    String countCustomerReturnListGoods(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
    //客户统计 退货单 支付结算
    ServiceVO updateStateCustomerReturnList(String customerReturnListId);
}
